package com.peas.platform.module.icims.expenditure.disbursement.adapter.repository.po;

import java.util.*;
import java.math.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.*;

// 网银支付
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_expenditure_internetbank`")
public class ExpenditureInternetbankPo extends BasePo {

    // 网银支付类型
    // 枚举取值:ExpenditureInternetbankType
    @Comment(value = "网银支付类型", enumType = "ExpenditureInternetbankType")
    @NotBlank(message = "网银支付类型不能为空")
    @Size(max = 20, message = "网银支付类型不能超过20个字符")
    @TableField(value = "`internetbank_type`", jdbcType = JdbcType.VARCHAR)
    private String internetbankType;

    // 网银支付编码
    // 自动生成
    @Comment(value = "网银支付编码")
    @Size(max = 100, message = "网银支付编码不能超过100个字符")
    @TableField(value = "`internetbank_code`", jdbcType = JdbcType.VARCHAR)
    private String internetbankCode;

    // 网银支付名称
    @Comment(value = "网银支付名称")
    @NotBlank(message = "网银支付名称不能为空")
    @Size(max = 200, message = "网银支付名称不能超过200个字符")
    @TableField(value = "`internetbank_name`", jdbcType = JdbcType.VARCHAR)
    private String internetbankName;

    // 申请日期
    @Comment(value = "申请日期")
    @TableField(value = "`application_date`", jdbcType = JdbcType.TIMESTAMP)
    private Date applicationDate;

    // 申请人部门ID
    // （组织架构表）外键
    @Comment(value = "申请人部门ID")
    @TableField(value = "`application_organization_id`", jdbcType = JdbcType.BIGINT)
    private Long applicationOrganizationId;

    // 申请人用户ID
    // （用户表）外键
    @Comment(value = "申请人用户ID")
    @TableField(value = "`application_user_id`", jdbcType = JdbcType.BIGINT)
    private Long applicationUserId;

    // 申请金额
    @Comment(value = "申请金额")
    @TableField(value = "`amount`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal amount;

    // 状态
    // 枚举取值:ExpenditureInternetbankState
    @Comment(value = "状态", enumType = "ExpenditureInternetbankState")
    @Size(max = 20, message = "状态不能超过20个字符")
    @TableField(value = "`state`", jdbcType = JdbcType.VARCHAR)
    private String state;

    // 收款类型
    // 收款单位、公务卡
    // 枚举取值:ExpenditureReimbursementPayeeType
    @Comment(value = "收款类型", enumType = "ExpenditureReimbursementPayeeType")
    @Size(max = 20, message = "收款类型不能超过20个字符")
    @TableField(value = "`payee_type`", jdbcType = JdbcType.VARCHAR)
    private String payeeType;

    // 银行支付流水号
    @Comment(value = "银行支付流水号")
    @Size(max = 300, message = "银行支付流水号不能超过300个字符")
    @TableField(value = "`transaction`", jdbcType = JdbcType.VARCHAR)
    private String transaction;

    // 银行支付消息
    @Comment(value = "银行支付消息")
    @Size(max = 500, message = "银行支付消息不能超过500个字符")
    @TableField(value = "`transaction_message`", jdbcType = JdbcType.VARCHAR)
    private String transactionMessage;

    // 摘要
    @Comment(value = "摘要")
    @Size(max = 1000, message = "摘要不能超过1000个字符")
    @TableField(value = "`summary`", jdbcType = JdbcType.VARCHAR)
    private String summary;

    // 备注
    @Comment(value = "备注")
    @TableField(value = "`remark`", jdbcType = JdbcType.CLOB)
    private String remark;

}
